import request from '@/utils/request'

export function getComposite(params) {
  return request({
    url: '/composite',
    method: 'get',
    params
  })
}

export function getXkComposite(params) {
  return request({
    url: '/xk-composite',
    method: 'get',
    params
  })
}

export function getSyExam(params) {
  return request({
    url: '/sy-exam',
    method: 'get',
    params
  })
}
export function getCompositeDetails(params) {
  return request({
    url: '/composite-details',
    method: 'get',
    params
  })
}

export function getOutComes(params) {
  return request({
    url: '/outcomes',
    method: 'get',
    params
  })
}
export function getResult(params) {
  return request({
    url: '/sy-result',
    method: 'get',
    params
  })
}

export function getXkCompositeDetails(params) {
  return request({
    url: '/xk-composite-details',
    method: 'get',
    params
  })
}

export function getXkMajors(params) {
  return request({
    url: '/xk-majors',
    method: 'get',
    params
  })
}
export function getXkSubjects(params) {
  return request({
    url: '/xk-subjects',
    method: 'get',
    params
  })
}
export function getXkMajorList(params) {
  return request({
    url: '/xk-majors-list',
    method: 'get',
    params
  })
}

export function getXkBestPlan(id) {
  return request({
    url: '/xk-best-plan/' + id,
    method: 'get'
  })
}

export function getXkResourceThrow(params) {
  return request({
    url: '/xk-resource-throw',
    method: 'get',
    params
  })
}

export function getXkSubjectRatio(params) {
  return request({
    url: '/xk-subject-ratio',
    method: 'get',
    params
  })
}

export function getOverView(params) {
  return request({
    url: '/overview',
    method: 'get',
    params
  })
}

export function exportWord(data) {
  return request({
    url: '/report',
    method: 'post',
    data: data
  })
}

